package com.atos.optical.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author wanghra
 * @version 1.0
 * @description
 * @date 2025/8/13
 */
@Data
@Entity
@Table
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class SysUserMenuRel implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @Id
    @Column(name = "USER_ID", length = 50, nullable = false)
    @TableId(value = "USER_ID")
    private String userId;
    /**
     * 菜单ID
     */
    @Id
    @Column(name = "MENU_ID", length = 50, nullable = false)
    @TableField(value = "MENU_ID")
    private String menuId;
}
